package com.crud.service;

import com.crud.entity.Dept;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author hyh
 * @date 2023/06/29 18:33:45
 */
public interface DeptService {
    PageInfo<Dept> listDept(Integer pageNum, Integer pageSize, String name);

    Integer save(Dept dept);

    Integer update(Dept dept);

    Integer remove(Integer id);
    List<Dept> findAll();
}
